package com.tanhua.dubbo.api;

import com.tanhua.dubbo.mapper.QuestionsMapper;
import com.tanhua.model.domian.Questions;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class QuestionsApiImpl implements QuestionsApi {

    @Autowired
    private QuestionsMapper questionsMapper;

    @Override
    public List<Questions> queryQuestion() {
        List<Questions> questions =  questionsMapper.queryQuestionS();
        return questions;
    }
}
